//请求方式和参数
import request from "@/api/https.js"
export const mineApi = {
	// getUserInfo: (params = {}) => {
	// 	return request.request({
	// 		url: "userInfo",
	// 		method: "GET",
	// 		data: params
	// 	})
	// },
	appletAuth: (params = {}) => {
		return request.request({
			url: "appletAuth",
			method: "POST",
			data: params
		})
	},
	obtainWxPhone: (params = {}) => {
		return request.request({
			url: "obtainWxPhone",
			method: "POST",
			data: params
		})
	},
	area: (params = {}) => {
		return request.request({
			url: "area",
			method: "GET",
			data: params
		})
	},
	myMemberDetail: (params = {}) => {
		return request.request({
			url: "myMemberDetail",
			method: "GET",
			data: params
		})
	},
	areaLevel: (params = {}) => {
		return request.request({
			url: "areaLevel",
			method: "GET",
			data: params
		})
	},
	editMyMember: (params = {}) => {
		return request.request({
			url: "editMyMember",
			method: "POST",
			data: params
		})
	},
	operationPhone: (params = {}) => {
		return request.request({
			url: "operationPhone",
			method: "GET",
			data: params
		})
	},
	collectionList: (params = {}) => {
		return request.request({
			url: "collectionMemberList",
			method: "GET",
			data: params
		})
	},
	checkPhoneCode: (params = {}) => {
		return request.request({
			url: "checkPhoneCode",
			method: "POST",
			data: params
		})
	},
	myActivitySignList: (params = {}) => {
		return request.request({
			url: "myActivitySignList",
			method: "GET",
			data: params
		})
	},
	iAmMemberNameMatch: (params = {}) => {
		return request.request({
			url: "iAmMemberNameMatch",
			method: "GET",
			data: params
		})
	},
	memberCheckMatch: (params = {}) => {
		return request.request({
			url: "memberCheckMatch",
			method: "POST",
			data: params
		})
	},
	checkMemberExistence: (params = {}) => {
		return request.request({
			url: "checkMemberExistence",
			method: "GET",
			data: params
		})
	},
	iAmMemberConfirmCodeSend: (params = {}) => {
		return request.request({
			url: "iAmMemberConfirmCodeSend",
			method: "POST",
			data: params
		})
	},
	editMyMemberSingle: (params = {}) => {
		return request.request({
			url: "editMyMemberSingle",
			method: "POST",
			data: params
		})
	},
}









// //请求方式和参数
// function pagerouter(Vue, vm) {
// 	//我的
// 	let getUserInfo = (data = {}) => uni.$u.get('userInfo', data); //获取个人信息接口
// 	let appletAuth = (data = {}) => uni.$u.post('appletAuth', data); //微信授权接口
// 	let obtainWxPhone = (data = {}) => uni.$u.post('obtainWxPhone', data); //微信获取手机号接口
// 	let area = (data = {}) => uni.$u.get('area', data); //获取全国省市区
// 	let myMemberDetail = (data = {}) => uni.$u.get('myMemberDetail', data); //获取个人信息编辑
// 	let areaLevel = (data = {}) => uni.$u.get('areaLevel', data); //所属地地址
// 	let editMyMember = (data = {}) => uni.$u.post('editMyMember', data); //修改个人信息
// 	let operationPhone = (data = {}) => uni.$u.get('operationPhone', data); //隐藏显示电话
// 	let collectionList = (data = {}) => uni.$u.get('collectionMemberList', data); //收藏列表
// 	let checkPhone = (data = {}) => uni.$u.post('checkPhone', data); //修改会员手机号码
// 	let myActivitySignList = (data = {}) => uni.$u.get('myActivitySignList', data); //我参加的活动
// 	return {
// 		getUserInfo,
// 		appletAuth,
// 		obtainWxPhone,
// 		area,
// 		myMemberDetail,
// 		areaLevel,
// 		operationPhone,
// 		editMyMember,
// 		collectionList,
// 		checkPhone,
// 		myActivitySignList,
// 	}
// }
// export default {
// 	pagerouter
// }
